package com.cdqidi.smsservice.service.auth;

import lombok.Getter;
import lombok.Setter;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: sjkyll
 * Date: 2018-08-06
 * Time: 10:03
 */
@Getter
@Setter
public class CacheData<T> {
    private T data;
    private Long saveTime; // 保存时间
    private Long expire;   // 过期时间 0为永久过期

    public void freeData(){
        this.data = null;
        this.saveTime = null;
        this.expire = null;
    }
}
